package cn.wolfcode.rbac.mapper;

import cn.wolfcode.rbac.domain.Role;
import cn.wolfcode.rbac.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Role role);

    Role selectByPrimaryKey(Long id);

    List<Role> selectAll(QueryObject qo);

    int updateByPrimaryKey(Role role);

    int getCount();

    List<Role> getAll();

    void deleteRelation(Long id);

    void saveRelation(@Param("roleId") Long roleId, @Param("perId") Long perId);
}